<?php
class Error extends Controller
{
    public function actionIndex($title, $description)
    {
        $viewParams = array(
            'title'         => $title,
            'description'   => $description
        );

        return $this->responseView(
            'error',
            $viewParams
        );
    }

    public function actionNotFound()
    {
        return $this->responseView('error');
    }
}